#pragma once
#include "afxwin.h"


// CDlgAddAccessVT dialog

typedef vector<string> StringVect;

class CDlgAddAccessVT : public CDialog
{
	DECLARE_DYNAMIC(CDlgAddAccessVT)
public:
	CDlgAddAccessVT(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgAddAccessVT();

// Dialog Data
	enum { IDD = IDD_DLG_ADD_ALL };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	int SplitString(CString strTemp, char split, StringVect& strIDVect);
	void AddACVTID(StringVect strVecName);
	bool AddACUserID(string SoftUserID,string &errMsg);
	bool AddVTUserID(string SoftUserID,string &errMsg);
	bool DelACUserID(string SoftUserID,StringVect VTID,string &errMsg);
	bool DelVTUserID(StringVect SoftUserID,string &errMsg);
	string GetQuoteSource();
	void GetListUserID(StringVect &);
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();
	afx_msg void OnBnClickedCheck1();

	double m_editVTMoney;
	CString m_strUserList;
	CEdit m_ctlResult;
	int m_intVTUnit;
	CString m_strResult;
	CComboBox m_comboQuoteSet;
	CString m_strNamedBefore;
};
